import java.util.Scanner;

/**
 * @Author: YCKOKO
 * @Date: 2023-05-18
 * @Time:10:36
 * @Description:
 */
public class demo1 {
    //密码长度加分
    public static int func1(String s){
        int len = s.length();
        if(len <= 4){
            return 5;
        }else if(len <= 7){
            return 10;
        }else{
            return 25;
        }
    }

    //字母判断加分
    public static int func2(String s){
        int count1 = 0; //大写字母
        int count2 = 0; //小写字母
        for(int i = 0; i < s.length(); i++){
            int num = s.charAt(i) - 'A';
            if(num >= 0 && num <= 25){
                count1++;
            } else if (num >= 32 && num <= 57) {
                count2++;
            }
        }
        if (count1 > 0 && count2 > 0) {
            return 20;
        } else if (count1 == 0 && count2 == 0) {
            return 0;
        } else {
            return 10;
        }
    }

    //数字有无判断加分
    public static int func3(String s) {
        int count = 0;//数字大写字母个数
        for (int i = 0; i < s.length(); i++) {
            int num = s.charAt(i) - '0';
            if (num >= 0 && num <= 9) {
                count++;
            }
        }
        if (count == 1) {
            return 10;
        } else if (count > 1) {
            return 20;
        } else {
            return 0;
        }
    }

    //符号有无判断加分
    public static int func4(String s) {
        int count = 0;//符号个数
        for (int i = 0; i < s.length(); i++) {
            int num1 = s.charAt(i) - '0';
            int num2 = s.charAt(i) - 'A';
            if ((num1 >= 0 && num1 <= 9) || (num2 >= 0 && num2 <= 25) || (num2 >= 32 && num2 <= 57)) {
                continue;
            } else {
                count++;
            }
        }
        if (count == 1) {
            return 10;
        } else if (count > 1) {
            return 25;
        } else {
            return 0;
        }
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        int sum = 0;
        int sum1= func1(s); //密码长度加分
        int sum2 = func2(s); //字母判断加分
        int sum3 = func3(s);//数字判断加分
        int sum4 = func4(s); //符号个数加分
        sum = sum1 + sum2 + sum3 + sum4;
        if(sum2 == 10 && sum3 > 0 && sum4 == 0){
            sum += 2;
        }else if (sum2 == 10 && sum3 > 0 && sum4 > 0){
            sum += 3;
        } else if (sum2 == 20 && sum3 > 0 && sum4 > 0) {
            sum += 5;
        }

        if(sum >= 90){
            System.out.println("VERY_SECURE");
        }else if(sum < 90 && sum >=80){
            System.out.println("SECURE");
        }else if(sum < 80 && sum >=70){
            System.out.println("VERY_STRONG");
        }else if(sum < 70 && sum >=60){
            System.out.println("STRONG");
        }else if(sum < 60 && sum >=50){
            System.out.println("AVERAGE");
        }else if(sum < 50 && sum >=25){
            System.out.println("WEAK");
        }else{
            System.out.println("VERY_WEAK");
        }
    }
}
